package com.k136.controller;

import com.k136.entity.Cityarea;
import com.k136.service.impl.CityareaServiceImpl;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * TODO 类
 *
 * @author LiuTai
 * @version 1.00
 * @Date 2024/11/8
 */
@RestController
@RequestMapping("/cityarea")
public class CityareaController {
    @Resource
    private CityareaServiceImpl cityareaService;

    @GetMapping("/city-areas")
    public List<Cityarea> getCityAreas() {
        return cityareaService.selCityarea();
    }
}
